package org.example.myleet.p1738;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(7 == solution.kthLargestValue(new int[][]{{5,2},{1,6}}, 1));
        Assert.isTrue(5 == solution.kthLargestValue(new int[][]{{5,2},{1,6}}, 2));
        Assert.isTrue(4 == solution.kthLargestValue(new int[][]{{5,2},{1,6}}, 3));
        Assert.isTrue(0 == solution.kthLargestValue(new int[][]{{5,2},{1,6}}, 4));
        Assert.isTrue(14 == solution.kthLargestValue(new int[][]{{8,10,5,8,5,7,6,0,1,4,10,6,4,3,6,8,7,9,4,2}}, 2));
        Assert.isTrue(1 == solution.kthLargestValue(new int[][]{{10,9,5},{2,0,4},{1,0,9},{3,4,8}}, 10));
    }
}
